<%@ page language="java" pageEncoding="utf-8" %>
<%@ include file="/include/taglibs.jsp" %>
<script src="${path}/static/taoshunda/goods/specialgoods.js"></script>
<link href="${path}/static/css/public/public.css" rel="stylesheet" type="text/css">

<div class="form-inline">
    <div class="input-group col-xs-2" style="float: left;margin-right:6px;">
        <input type="text" class="form-control entry" placeholder="请输入商品名称" name="goodsName1"/>
    </div>
    <button class="btn query_button" id="goodsSelect">
        <%--<span class="glyphicon glyphicon-search" aria-hidden="true"></span>--%>
        查询
    </button>
</div>


<table id="table"
       data-toggle="table"
       data-url="${path}/web/goods/findSpecialGoods"
       data-toolbar="#toolbar"
       data-side-pagination="server"
       data-pagination="true"
       data-page-list="[5, 10, 20, 50, 100, 200]"
>
    <thead>
    <tr>
        <th data-field="goodsName">商品名称</th>
        <th data-formatter="headPicFormatter">商品图片</th>
        <th data-field="buss_name">商家名称</th>
        <th data-field="buss_tel">联系电话</th>
        <th data-field="saleNum">销量</th>
        <th data-field="price">售价</th>
        <th data-formatter="goodsFormatter" data-events="goodsEvent">操作</th>
    </tr>
    </thead>
</table>


<!--同意特价弹出的对话框-->
<div id="goodsSpecial-div" class="slidingmenu box-model box box-info">
    <div class="box box-info">

        <div class="box-header">
            <h3 class="box-title">特价套餐</h3>
        </div>

        <div class="box-body" style="margin-top: 5%">
            <form role="form" method="post" id="detailProForm">
                <input type="hidden" name="id" id="id"/>

                <div class="form-group">
                    <label>选择特价套餐:</label>
                    <input type="hidden" id="agreeSpecial" name="isSpecial">
                    <select id="isSpecial" class="form-control">
                        <option value="">特价套餐</option>
                        <option value="1" >一月一交</option>
                        <option value="2" >付三免一</option>
                    </select>
                </div>
            </form>
            <div class="box-footer" style="margin-top: 10%">
                <button class="btn btn-info" id="okSpecial">确定</button>&nbsp;&nbsp;&nbsp;
                <button class="btn btn-danger close-model">关闭</button>
            </div>
        </div>
    </div>
</div>

<!--查看详情-->
<div id="show-div" class="slidingmenu box-model box box-info"><!--添加推送信息 開始-->
    <div class="box box-info">

        <div class="box-header">
            <h3 class="box-title">商品详情</h3>
        </div>

        <div class="box-body">
            <form role="form" id="showgoodsform">
                <div class="form-group">
                    <label>商品名称:</label>
                    <input type="text" class="form-control" name="goodsName" readonly style="width: 50%">
                </div>

                <div class="form-group">
                    <label>商家电话:</label>
                    <input type="text" class="form-control" name="buss_tel" readonly style="width: 50%">
                </div>

                <div class="form-group">
                    <label>库存:</label>
                    <input type="text" class="form-control" name="stock" readonly style="width: 50%">
                </div>

                <div class="form-group">
                    <label>销量:</label>
                    <input type="text" class="form-control" name="saleNum" readonly style="width: 50%">
                </div>

                <div class="form-group">
                    <label>价格:</label>
                    <input type="text" class="form-control" name="price" readonly style="width: 50%">
                </div>

                <div class="form-group" id="div-alias">
                    <label>商品图片：</label>
                    <div id="showimages"></div>
                </div>
            </form>
            <div class="box-footer">
                <button class="btn btn-danger close-model">关闭</button>
            </div>
        </div>

        <!-- /.box-body -->
    </div>
</div>
</div>
